<div class="fly-header layui-bg-black">
    <div class="layui-container">
        <a class="fly-logo" href="/">
            <img src="__IMG__/logo.png" alt="layui">
        </a>
      <!--  <ul class="layui-nav fly-nav layui-hide-xs">
            <li class="layui-nav-item layui-this">
                <a href="/"><span><img src="__IMG__/shareIcon.png" alt="" class="sw-nav-item"></span>分享排行</a>
            </li>
            <li class="layui-nav-item">
                <a href="case/case.html"><i class="iconfont icon-iconmingxinganli"></i>优选学习资源</a>
            </li>
        </ul>-->
        <ul class="layui-nav fly-nav-user">
            {if condition="session('uid') neq ''"}
            <!-- 登入后的状态 -->
            <li class="layui-nav-item">
                <a class="fly-nav-avatar" href="{:url('user/home')}">
                    <cite class="layui-hide-xs">{$Think.session.name}</cite>
                    <i class="layui-badge fly-badge-vip layui-hide-xs">{$Think.session.ulevel}</i>
                    <img src="__PUBLIC__/{$Think.session.ucover}">
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="{:url('user/set')}"><i class="layui-icon">&#xe620;</i>基本设置</a></dd>
                    <dd><a href="{:url('user/home')}"><i class="layui-icon" style="margin-left: 2px; font-size: 22px;">&#xe68e;</i>我的主页</a>
                    </dd>
                    <hr style="margin: 5px 0;">
                    <dd><a href="{:url('audit/index')}" style="text-align: center;">管理</a></dd>
                    <dd><a href="{:url('login/logout')}" style="text-align: center;">退出</a></dd>
                </dl>
            </li>
            {else /}

            <!--未登入的状态-->
            <li class="layui-nav-item">
                <a class="iconfont icon-touxiang layui-hide-xs" href="{:url('login/login')}"></a>
            </li>
            <li class="layui-nav-item">
                <a href="{:url('login/login')}">登入</a>
            </li>
            <li class="layui-nav-item">
                <a href="{:url('login/reg')}">注册</a>
            </li>
            {/if}
        </ul>
    </div>
</div>